/**
 * 百度统计
 */
export function initBaidu () {
  try {
    // TODO 百度统计代码
    var _hmt = _hmt || [];
    (function () {
      console.log('百度统计');
      var hm = document.createElement('script');
      hm.src = 'https://hm.baidu.com/hm.js?5b63eb8385d471ec0463ac9532b8101b';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(hm, s);
    })();
  } catch (error) {
    console.error(error);
  }
}
